#ifndef ITEM_H
#define ITEM_H

#include <QtGui>

class Item : public QPushButton
{
    Q_OBJECT

public:
    Item(QWidget *parent = 0);
    inline void SetId(const QString &num)
    {
        id->setText(num);
    }
    QLabel *id;

protected:
    virtual void CreateWidget() = 0;
    virtual void CreateLayout() = 0;

//    QLabel *id;

protected slots:
    virtual void SwitchToObject() = 0;
};

#endif // ITEM_H
